package zzk.gwxer.tttttt.hanlan.ding

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.ExperimentalFoundationApi
import zzk.gwxer.tttttt.hanlan.ding.ui.screen.MainScreen
import zzk.gwxer.tttttt.hanlan.ding.ui.theme.DingTheme
import zzk.gwxer.tttttt.hanlan.ding.vm.MainViewModel

class MainActivity : ComponentActivity() {
    companion object {
        const val TAG = "MainActivity"
    }
    val mainViewModel = MainViewModel()

    @OptIn(ExperimentalFoundationApi::class)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            DingTheme {
                MainScreen(mainViewModel)
            }
        }
    }
}
